An Analysis of the Core-ML Language: Expressive Power and Type Reconstruction
نویسندگان
چکیده
Core-ML is a basic subset of most functional programming languages. It consists of the simply typed (or monomorphic)-calculus, simply typed equality over atomic constants, and let as the only poly-morphic construct. We present a synthesis of recent results which characterize this \toy" language's expressive power as well as its type reconstruction (or type inference) problem. More speciically: (1) Core-ML can express exactly the ELEMENTARY queries, where a program input is a database encoded as a-term and a query program is a-term whose application to the input normalizes to the output database. In addition, it is possible to express all the PTIME queries so that this normalization process is polynomial in the input size. (2) The polymorphism of let can be explained using a simple algorithmic reduction to monomorphism, and provides exibility, without aaecting expressibility. Algorithms for type reconstruction ooer the additional convenience of static typing without type declarations. Given polymorphism, the price of this convenience is an increase in complexity from linear-time in the size of the program typed (without let) to completeness in exponential-time (with let). (3) Fragments of Core-ML, based on the order of functionalities used, can be fairly expressive. For example, order 5 suuces for the PTIME queries, even without let or equality. Also, for each xed order, type reconstruction is polynomial in program size. Programming by using low order functionalities and type reconstruction is common in functional languages. Thus, our analysis partly explains the wide use and eeciency of such programming practices.
منابع مشابه
First - Class Structures for Standard ML ( Extended Summary )
Standard ML is a statically typed programming language that is suited for the construction of both small and large programs. \Programming in the small" is captured by Standard ML's Core language. \Programming in the large" is captured by Standard ML's Modules language that provides constructs for organising related Core language deenitions into self-contained modules with descriptive interfaces...
متن کاملThe Recursive Record Semantics of Objects Revisited
In a call-by-value language, representing objects as recursive records requires using an unsafe xpoint. We design, for a core language including extensible records, a type system which rules out unsafe recursion and still supports the reconstruction of a principal type. We illustrate the expressive power of this language with respect to object-oriented programming by introducing a sub-language ...
متن کاملPersian Adaptation of Enhanced Milieu Teaching for Iranian Children With Expressive Language Delay
Objectives: This study aimed at adapting and examining the applicability of the Teach-Model-Coach-Review model of the enhanced milieu teaching (EMT) approach for improving Iranian mothers’ language strategies while interacting with their toddlers with expressive language delay. Methods: In a single-subject multiple-baseline across-behavior study, the mothers of 3 toddlers with expressive langu...
متن کاملEvaluate the Ability of Autistic Children to Use Expressive Language and Receptive Language
Introduction: In early typical language development, children understand words before they are able to use them in speech. Children with autism spectrum disorders (ASD) generally show impairments in both the comprehension and the production of language. However, the relative degree of delay or impairment in each of these sub-domains may also be atypical and remains less well-understood. Materia...
متن کاملEvaluation of Receptive and Expressive Vocabulary in 6-18 Month’s-old Children With Cleft Lip and Palate
Objectives: One of the factors predicting language impairments is an early limited lexicon in children. An early limited lexicon can also lead to limited performances in other language areas. This study was aimed to examine receptive and expressive vocabulary in 8-16 month-old children with cleft lip and palate as a predictor of development in other language areas. Materials: The MacArthur-Bat...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1994